#coding=utf-8
import arcpy
path = r'D:\WorkData\20250712四川河流\0820处理'
arcpy.env.workspace = path
arcpy.env.overwriteOutput = True
spatial_ref = arcpy.SpatialReference(4326)

rivs1 = r'D:\WorkData\20250712四川河流\0820处理\rivs1.shp'.decode('utf-8')

rivIDList = []
cs1 = arcpy.da.SearchCursor(rivs1, ['rivID'])
i = 0
for row1 in cs1:
    if row1[0] not in rivIDList:
        rivIDList.append(row1[0])
    else:
        print i,row1[0]
    i+=1